﻿<%@ Page Language="C#" MasterPageFile="~/MasterPageSERIX.Master" AutoEventWireup="true"
    CodeBehind="VinculosPropriedades.aspx.cs" Inherits="SERIX.VinculosPropriedades"
    Title="Vínculos de Propriedades" %>

<%@ Register Src="Controles/Navegador.ascx" TagName="Navegador" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table width="97%" border="0" cellspacing="0" cellpadding="2" align="center">
        <tr>
            <td class="secao_titulo" style="width: 284px">
                Beneficiários da Propriedade<hr class="linhaHorizontal" style="width: 740px" />
            </td>
        </tr>
    </table>
    <table align="center" border="0" cellpadding="2" cellspacing="0" width="97%">
        <tr>
            <td align="center" class="grid_mestre" id="tdMestre" runat="server" style="height: 28px">
                <table align="center" border="0" cellpadding="0" cellspacing="0" width="100%">
                    <tr>
                        <td style="width: 100%; text-align: center;">
                            <asp:Label ID="lbMestre" runat="server" Text="Mestre"></asp:Label>
                        </td>
                        <td align="left" class="grid_mestre" style="width: 16px; height: 16px; text-align: right;">
                            <asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/Imagens/botoes/remove.png"
                                OnClick="ImageButton1_Click" CausesValidation="False" ToolTip="Remover Filtro Mestre" />
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td align="left" class="barra" style="height: 16px;">
                <asp:Button ID="btnNovo" runat="server" Font-Bold="True" OnClick="btnNovo_Click"
                    TabIndex="1" Text="Novo" UseSubmitBehavior="False" Width="78px" />
            </td>
        </tr>
        <tr>
            <td align="center" class="grid_titulo">
                <asp:Panel ID="Panel1" runat="server" BorderWidth="0" BorderStyle="None" DefaultButton="btnPequisar">
                    <span style="color: #FFFFFF">Filtrar: </span>
                    <asp:TextBox ID="txtFiltrar" runat="server" MaxLength="55" TabIndex="2" Width="127px"></asp:TextBox>
                    <span style="color: #FFFFFF">&nbsp; por&nbsp; </span>
                    <asp:DropDownList ID="ddlPor" runat="server" TabIndex="3" Width="128px">
                        <asp:ListItem Value="1">Nome</asp:ListItem>
                        <asp:ListItem Value="2">CPF</asp:ListItem>
                        <asp:ListItem Value="3">RG</asp:ListItem>
                        <asp:ListItem Value="4">Cert. Nasc.</asp:ListItem>
                    </asp:DropDownList>
                    &nbsp;
                    <asp:CheckBox ID="cbAtivos" runat="server" Text="Somente Ativos" />
                    &nbsp;
                    <asp:Button ID="btnPequisar" runat="server" Font-Bold="True" OnClick="btnPequisar_Click"
                        TabIndex="5" Text="Pesquisar" Width="80px" />
                    <asp:Button ID="btnTodos" runat="server" Font-Bold="True" OnClick="btnTodos_Click"
                        TabIndex="6" Text="Todos" UseSubmitBehavior="False" Width="80px" />
                </asp:Panel>
            </td>
        </tr>
        <tr>
            <td align="left" style="color: #000000">
                <asp:Label ID="lblFiltro" runat="server" CssClass="filtro" TabIndex="-1" Text="Filtro: "></asp:Label>
            </td>
        </tr>
        <tr>
            <td align="center" style="color: #000000">
                <asp:GridView ID="gridView" runat="server" AutoGenerateColumns="False" CssClass="grid"
                    OnRowDataBound="gridView_RowDataBound" PageSize="5" EmptyDataText="Nenhuma registro encontrado.">
                    <Columns>
                        <asp:BoundField DataField="IDT_PROP" HeaderText="Identificador da propriedade" SortExpression="IDT_PROP"
                            Visible="False" />
                        <asp:BoundField DataField="IDT_BENEF" HeaderText="Identificador do beneficiario"
                            SortExpression="IDT_BENEF" Visible="False" />
                        <asp:BoundField DataField="IDT_VINC_PROP" HeaderText="Identificador do vinculo com a propriedade"
                            SortExpression="IDT_VINC_PROP" Visible="False" />
                        <asp:BoundField DataField="SEQ_VINC" HeaderText="Sequencial do vinculo" SortExpression="SEQ_VINC"
                            Visible="False" />
                        <asp:BoundField DataField="NOM_BENEF" HeaderText="Beneficiário" SortExpression="NOM_BENEF"
                            ItemStyle-Width="520px">
                            <ItemStyle Width="520px"></ItemStyle>
                        </asp:BoundField>
                        <asp:BoundField DataField="DSC_VINC_PROP" HeaderText="Vinculo" SortExpression="DSC_VINC_PROP"
                            ItemStyle-Width="120px" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center">
<HeaderStyle HorizontalAlign="Center"></HeaderStyle>

                            <ItemStyle Width="120px"></ItemStyle>
                        </asp:BoundField>
                        <%--<asp:BoundField DataField="STATUS" HeaderText="Status" SortExpression="STATUS" ItemStyle-Width="120px" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center">
                            <ItemStyle Width="120px"></ItemStyle>
                        </asp:BoundField>
                        <asp:BoundField DataField="DAT_INI" HeaderText="Inicio" SortExpression="DAT_INI" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center"
                            ItemStyle-Width="120px">
                            <ItemStyle Width="120px"></ItemStyle>
                        </asp:BoundField>--%>
                        <asp:TemplateField FooterText="Detalhes" HeaderText="Detalhes" ItemStyle-Width="70px">
                            <ItemTemplate>
                                <asp:HyperLink ID="Detalhes_HyperLink" runat="server" ImageUrl="Imagens/botoes/Detail.png">Detalhes</asp:HyperLink>
                            </ItemTemplate>
                            <HeaderStyle HorizontalAlign="Center" />
                            <ItemStyle HorizontalAlign="Center" />
                        </asp:TemplateField>
                        <asp:TemplateField FooterText="Editar" HeaderText="Editar" ItemStyle-Width="70px">
                            <ItemTemplate>
                                <asp:HyperLink ID="Editar_HyperLink" runat="server" ImageUrl="Imagens/botoes/Edit.png">Editar</asp:HyperLink>
                            </ItemTemplate>
                            <HeaderStyle HorizontalAlign="Center" />
                            <ItemStyle HorizontalAlign="Center" />
                        </asp:TemplateField>
                        <asp:TemplateField FooterText="Excluir" HeaderText="Excluir" 
                            ItemStyle-Width="70px" Visible="False">
                            <ItemTemplate>
                                <asp:HyperLink ID="Excluir_HyperLink" runat="server" ImageUrl="Imagens/botoes/Delete.png">Excluir</asp:HyperLink>
                            </ItemTemplate>
                            <HeaderStyle HorizontalAlign="Center" />
                            <ItemStyle HorizontalAlign="Center" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Opções">
                            <ItemTemplate>
                                <asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True" Height="17px"
                                    OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged" Width="141px">
                                    <asp:ListItem Selected="True" Value="  ">
                                    </asp:ListItem>
                                    <asp:ListItem>Ficha Cadastral</asp:ListItem>
                                </asp:DropDownList>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                    <AlternatingRowStyle CssClass="row_alter" />
                    <EmptyDataRowStyle CssClass="emptyrow" />
                    <FooterStyle CssClass="footer" />
                    <HeaderStyle CssClass="header" />
                    <PagerStyle CssClass="pager" />
                    <RowStyle CssClass="row" />
                </asp:GridView>
            </td>
        </tr>
        <tr>
            <td align="center" style="color: #000000">
                <uc1:Navegador ID="Navegador1" runat="server" />
            </td>
        </tr>
        <tr>
            <td align="center" style="color: #000000">
                &nbsp;
            </td>
        </tr>
    </table>
</asp:Content>
